'use strict';
const db = uniCloud.database();
exports.main = async (event, context) => {
	// 获取 `user` 集合的引用
	const collection = db.collection(event.colName);
	let res = await collection.add(event.data) ;
	return res
};
